package com.jinmdz.app.api;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

import java.util.TimeZone;

/**
 * MainApplication
 *
 * @author LiCongLu
 * @date 2019-12-13 16:16
 */
@SpringBootApplication
@MapperScan({"com.jinmdz.fmis.mapper.mapper", "com.jinmdz.app.dao.dao"})
public class MainApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        // 设置时区 相差8小时
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
        SpringApplication.run(MainApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MainApplication.class);
    }
}